import request from '@/utils/request'

// 查询设备列表
export function listTemperature(query) {
  return request({
    url: '/equipment/temperature/list',
    method: 'get',
    params: query
  })
}

// 查询设备详细
export function getTemperature(temperatureId) {
  return request({
    url: '/equipment/temperature/' + temperatureId,
    method: 'get'
  })
}

// 新增设备
export function addTemperature(data) {
  return request({
    url: '/equipment/temperature',
    method: 'post',
    data: data
  })
}

// 修改设备
export function updateTemperature(data) {
  return request({
    url: '/equipment/temperature',
    method: 'put',
    data: data
  })
}

// 删除设备
export function delTemperature(temperatureIds) {
  return request({
    url: '/equipment/temperature/' + temperatureIds,
    method: 'delete'
  })
}

// 删除车辆信息
export function updateVehicle(data) {
  return request({
    url: '/equipment/temperature/updateVehicle',
    method: 'put',
    data: data
  })
}

// 删除车辆信息
export function delBound(data) {
  return request({
    url: '/equipment/temperature/delBound',
    method: 'put',
    data: data
  })
}

//查询车辆信息
export function listVehicle(query) {
  return request({
    url: '/equipment/temperature/select',
    method: 'get',
    params: query
  })
}

export function getTemList(id) {
  return request({
    url: '/equipment/temperature/TemPic?id=' + id,
    method: 'get',
  })
}
